<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="box">
			
		</div>
		<script src="jquery.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			//1   append   将  '<h1>Hello world</h1>'  插入
			$('#box').append('<h1>Hello world</h1>')
			//2   appendTo 将'<h3>疯羊儿</h3>'  插入到 box 中
			$('<h3>疯羊儿</h3>').appendTo('#box').css('color','pink').click(function(){
				alert('疯羊儿');
			})
		</script>
	</body>
</html>
